<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="en" />
    <meta name="author" lang="en" content="None" />
    <meta name="description" content="al_earth" />
    <meta name="keywords" content="al_earth events" />
    <meta name="robots" content="all,follow" />
    <link href="/css/default.css" type="text/css" rel="stylesheet" media="screen,projection,print" />

    <title>${self.title()}</title>
    
<script src="/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript"><!--
function popup(url) {
  newwindow=window.open(url,'name','height=400,width=600');
  if (window.focus) newwindow.focus();
  return false;
}
function collapse(id) { jQuery('#'+id).slideToggle(); }
function fade(id,value) { if(value>0) jQuery('#'+id).hide().fadeIn('slow'); else jQuery('#'+id).show().fadeOut('slow'); }
function ajax(u,s,t) {
  var query="";
  for(i=0; i<s.length; i++) { 
     if(i>0) query=query+"&";
     query=query+encodeURIComponent(s[i])+"="+encodeURIComponent(document.getElementById(s[i]).value);
  }
  jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t==':eval') eval(msg); else document.getElementById(t).innerHTML=msg; } });  
}
String.prototype.reverse = function () { return this.split('').reverse().join('');};
function web2py_ajax_init() {
  jQuery('.hidden').hide();
  jQuery('.error').hide().slideDown('slow');
  jQuery('.flash').hide();
  if(jQuery('.flash').html()!='') jQuery('.flash').slideDown('slow');
  jQuery('.flash').click(function() { jQuery(this).fadeOut('slow'); return false; });
  jQuery('input.string').attr('size',50);
  jQuery('textarea.text').attr('cols',50).attr('rows',10);
  jQuery('input.integer').keyup(function(){this.value=this.value.reverse().replace(/[^0-9\-]|\-(?=.)/g,'').reverse();});
  jQuery('input.double').keyup(function(){this.value=this.value.reverse().replace(/[^0-9\-\.]|[\-](?=.)|[\.](?=[0-9]*[\.])/g,'').reverse();});
  jQuery('input.delete').attr('onclick','if(this.checked) if(!confirm("Sicuro che vuoi cancellare questo oggetto?")) this.checked=false;');
  try {jQuery("input.date").focus( function() {Calendar.setup({
     inputField:this.id, ifFormat:"%d/%m/%Y", showsTime:false
  }); }); } catch(e) {};
  try { jQuery("input.datetime").focus( function() {Calendar.setup({
     inputField:this.id, ifFormat:"%d/%m/%Y %H:%M:%S", showsTime: true,timeFormat: "24"
  }); }); } catch(e) {};
  try { jQuery("input.time").clockpick({
      starthour:0, endhour:23, showminutes:true, military:true
  }); } catch(e) {};
};
jQuery(document).ready(web2py_ajax_init);
//--></script>

  </head>
  <body>
    <div class="header">

      <div class="menu layout">

        <ul>
% for item in menu:
          <li><a href="${item[1]}">${item[0]}</a></li>
% endfor
        </ul>
      </div>
    </div>
${self.body()}
    <div class="footer">Copyright &copy; 2007 - 2009 - powered by <a href="http://web2py.com">web2py</a></div>
  </body>
</html>

